﻿using System;
using System.Linq;
using Altairis.FluffyCloud.Data;

namespace Altairis.FluffyCloud.WebCore.Pages.Groups {

    public partial class HomePage : DbPage {

        public IQueryable<Role> GroupList_GetData() {
            var q = from r in this.DbContext.Roles
                    orderby r.RoleName
                    select r;
            return q;
        }

        protected void CreateRoleButton_Click(object sender, EventArgs e) {
            this.Response.RedirectToRoute("GroupCreate");
        }
    }
}